package animal;

import java.util.Random;

public class Tortoise extends Thread {
	public void run() {
		int r = 0;
		Random random = new Random();
		r = random.nextInt(2);
		r = r++;
		// random.nextInt(2);
		for (int i = 0; i <= 20;) {
			System.out.println("乌龟跑了" + i + "米");
			i = i + 2;
			System.out.println("乌龟睡了" + r + "秒");
		}
		System.out.println("乌龟到终点了！");
	}
}
